#!/usr/bin/env python

import sys
import socket

class sw(object):
    def __init__(self):
        self.s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
        self.s.settimeout(1.0)
        (family, socktype, proto, canonname, sockaddr) = socket.getaddrinfo("1.1.1.1",80,socket.AF_INET,socket.SOCK_STREAM)[0]
        self.connect(sockaddr)
    def connect(self, addr):
            self.s.connect(addr)
    pass


def test(argv):
    s = sw()
    pass

if __name__ == '__main__':
    sys.exit( test(sys.argv[1:]))
